<!DOCTYPE html>
<html>
<head>
    <title><%= title %></title>
    <meta name="description" content="<%= description %>"/>
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="x-ua-compatible" content="IE=edge" />
    <style>
        @-ms-viewport { width:device-width; }
        @media only screen and (min-device-width:800px) { html { overflow:hidden; } }
        html { height:100%; }
        body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; background: url("http://cdn.bigpixel.cn/www/0722/bps-loading.gif") no-repeat fixed center center #002a5b;}
        #pano-container{  width:100%;height:100%;  }
    </style>
    <script src="http://apps.bdimg.com/libs/jquery/1.11.3/jquery.min.js"></script>

    <script src="http://cdn.bigpixel.cn/libs/krpano/1.18.5/tour.js"></script>



    <script src="/scripts/bigpixel.base.js"></script>
    <script src="/scripts/bigpixel.panoviewer.js"></script>
    <script src="/scripts/bigpixel.usertags.js"></script>


</head>
<body>
<!--<div id="pano-container">-->
<!--</div>-->

<div id="pano-container" style="width:100%;height:100%;" data-role="page"><noscript> <table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;"> 错误:<br /><br />Javascript 没有激活<br /><br /> </div> </td></tr></table></noscript></div>

<script>

    //var panoObj = new Pano("<%= tourxmlpath%>",function(){
        //panoObj.lookto(10,20,80);
    //});
    //var panoObj = new Pano("<%= tourxmlpath%>");

    //panoObj.lookto(10,20,80)
    bpsviewer=new BigPixelViewer("<%= tourxmlpath%>","swift1989");
    document.bpsviewer=bpsviewer;
    bpsviewer.embed();
    var panoinfo={panoid:'<%= panoid%>'};
    var flag_url=true;
    var arr=[];
    function change_url(){
        if(flag_url){
            var hh='http://wwwtest.bigpixel.cn/stylesheets/images/audi.png';
            for(var i=0;i<arr.length;i++){
                bpsviewer.set('plugin['+arr[i]+'].url',hh);
//                bpsviewer.call('set(plugin['+arr[i]+'].url,/stylesheets/images/audi.png');
                bpsviewer.call('set(plugin['+arr[i]+'].url',hh);
            }
            flag_url=false;
        }else{
            flag_url=true;
        }

    }
    function getinfoskip(){

//        var _url="/service/panos/"+panoinfo.panoid+"/usertags?skip="+Tag_index+"&limit="+per_page_tag_num;
        var _url="/service/panos/"+panoinfo.panoid+"/usertags?skip=0&limit=150";
        $.bigpixel.AjaxGetJson(_url,function(err,data) {
            console.log(data);
            if (!err) {
                //返回的数据
                 //console.log(JSON.stringify(data));
                //alert(JSON.stringify(data));
                var listData=data.data;
                var url='';
                for(var i=0;i<listData.length;i++){
                    if(flag_url){
                        url=listData[i].userinfo.headimgurl;    //ture weixin
                    }else{
                        url='/stylesheets/images/audi.png';   //false 一个
                    }
                    bpsviewer.call("create_tag_table("+listData[i].userinfo.userid+","+listData[i].ath+","+listData[i].atv+","+url+");");
                    arr.push('new_tag'+listData[i].userinfo.userid);
                }

            }
        });
    }

$(document).ready(function(){
    getinfoskip();
});
</script>

<!--百度分享-->
<div class="bdsharebuttonbox" data-tag="share_1"><a class="bds_mshare" data-cmd="mshare"></a><a class="bds_qzone" data-cmd="qzone" href="#"></a><a class="bds_tsina" data-cmd="tsina"></a><a class="bds_baidu" data-cmd="baidu"></a><a class="bds_renren" data-cmd="renren"></a><a class="bds_tqq" data-cmd="tqq"></a><a class="bds_more" data-cmd="more">更多</a><a class="bds_count" data-cmd="count"></a></div>
<script>
    window._bd_share_config = {common : {bdText : '<%= title%>', bdDesc : '<%= description%>', bdUrl : window.location.href, bdPic : '<%= thumbPath%>'}, share : [{"bdSize" : 16}], slide : [{bdImg : 0, bdPos : "right", bdTop : 100}], image : [{viewType : 'list', viewPos : 'top', viewColor : 'black', viewSize : '16', viewList : ['qzone','tsina','huaban','tqq','renren']}], selectShare : [{"bdselectMiniList" : ['qzone','tqq','kaixin001','bdxc','tqf']}]}
    with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion='+~(-new Date()/36e5)];
</script>
<% include ../partials/foot.html %>
</body>
</html>